//
//  DiseaseDTO.m
//  QuickCure
//
//  Created by 马文星 on 16/5/4.
//  Copyright © 2016年 Demos. All rights reserved.
//

#import "DiseaseDTO.h"

#define kCi3_id   @"ci3_id"
#define kCi3_name @"ci3_name"
#define kCi2_id   @"ci2_id"


@implementation DiseaseDTO

-(instancetype)initWithDictionary:(NSDictionary *)dic{
    
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)modelWithDic:(NSDictionary *)dic{

    return [[self alloc] initWithDictionary:dic];
}


////接档
//-(instancetype)initWithCoder:(NSCoder *)aDecoder{
//
//    self = [super init];
//    
//    if (self) {
//
//    self.ci3_id   = [aDecoder decodeIntegerForKey:kCi3_id];
//    self.ci3_name = [aDecoder decodeObjectForKey:kCi3_name];
//    self.ci2_id   = [aDecoder decodeIntegerForKey:kCi2_id];
//    }
//    
//    return self;
//}
//
//// 归档
//-(void)encodeWithCoder:(NSCoder *)aCoder{
//
//
//    [aCoder encodeInteger:_ci2_id forKey:kCi2_id];
//    [aCoder encodeObject:_ci3_name forKey:kCi3_name];
//    [aCoder encodeInteger:_ci3_id forKey:kCi3_id];
//}






@end
